﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="Mobile System" />
    <title>"e路平安征收"系统登录</title>
    <link rel="stylesheet" href="../css/jquery.mobile-1.3.0.css" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery.mobile-1.3.0.js"></script>
    <script src="../js/Jquery.Common.js" type="text/javascript"></script>
    <script src="../js/Jquery.Global.js" type="text/javascript"></script>
    <script type="text/javascript">
        
        function ValideUser() {
            var strName = $("#userName").val();
            var strPass = $("#userPwd").val();
            if (strName == "" || strPass == "") {
                alert("用户名或密码不能为空");
            }
            else {
                strRootPath = "../";
                var nReturn = CommonData("UserInfoOperation", "ValideUser", strName + "," + strPass, ValideResult);
            }
        }

        function ValideResult(nResult)
        {
            if (nResult == "1") {
                window.location.href = "main.html?userid=" + $("#userName").val();
            }
            else {
                alert("用户名或密码错误！");
            }
        }

        $(document).ready(function () {
            $('#btnExit').live('tap', function () {
                ExitSys();
            });
        });

        function ShowIndex() {
            window.location.href = "index.html";
        }
    </script>
</head>
<body>
    <div data-role="page" id="page1">
        <div data-role="header">
            <h1>
                用户登录</h1>
        </div>
        <br />
        <div data-role="content">
            <div data-role="fieldcontain">
                <label for="userName">
                    用戶名：
                </label>
                <input id="userName" name="userName" data-clear-btn="true" placeholder="user" value=""
                    type="text">
            </div>
            <div data-role="fieldcontain">
                <label for="userPwd">
                    密 码：
                </label>
                <input id="userPwd" name="userPwd" data-clear-btn="true" placeholder="pass" value=""
                    type="password">
            </div>
            <div data-role="fieldcontain">
                <label>
                    <input type="checkbox" name="cbxRemb" id="cbxRemb">记住登录信息
                </label>
            </div>
            <div data-role="controlgroup" data-type="horizontal">
                <button class="ui-btn" id="btnLogin" name="btnLogin" onclick="ValideUser()">
                    登 录</button>
                <button class="ui-btn" id="btnExit" name="btnExit">
                    退 出</button>
            </div>
        </div>

        <div data-role="footer" data-id="fool" data-position="fixed">
            <div data-role="navbar">
                <ul>
                    <li><a href="javascript:ShowIndex()" id="aGsjs">公司介绍</a></li>
                </ul>
            </div>
            <!--/navbar -->
        </div>
        <!-- /footer -->
    </div>
    <!--page end -->
</body>
</html>
